package com.weishu.house.controller;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.weishu.house.service.IRoomReservationService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 预约房源表 前端控制器
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@RestController
@RequestMapping("/room-reservation")
public class RoomReservationController {

    @Autowired
    private IRoomReservationService iRoomReservationService;

    @RequestMapping("list")
    public PageInfo List(int pageNum,int pageSize){
       return iRoomReservationService.List(pageNum,pageSize);
    }

}
